package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.business.entity.TraceEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * Created by LiuSha on 2020/7/28.
 * 订单管理
 */
@Entity
@Table(name = "t_plant_order")
public class Order extends TraceEntity {
    @Column
    private String orderCode; //订单号
    @Column
    private String state; //订单状态(1待付款；2：待发货；3：已发货)
    @Column
    private String clientId; //客户ID
    @Column
    private String clientName; //客户名称
    @Column
    private String deliverTime; //交货时间
    @Column
    private String salesperson; //销售员
    @Column
    private String source; //订单来源
    @Column
    private String consignee; //收货人
    @Column
    private String phone; //收货人电话
    @Column
    private String address; //收货人地址
    @Column
    private String invoiceType; //发票类型
    @Column
    private String invoiceRise;  //发票抬头
    @Column
    private String invoiceCode;  //发票识别号
    @Column
    private String invoicePhone;  //发票联系人
    @Column
    private String invoiceAddress;  //发票地址
    @Column
    private String invoiceName;  //发票开户名称
    @Column
    private String invoiceBank;  //发票开户银行
    @Column
    private String invoiceBankCode;  //发票开户银行账户
    @Column
    private String payStatus; //付款情况
    @Column
    private String payType; //付款方式
    @Column
    private String payAmount; //付款金额
    @Column
    private String totalAmount; //总金额
    @Column
    private String logistics; //物流
    @Column
    private String receiveTime; //收款时间
    @Transient
    private List<OrderDetailed> orderDetailedList; //订单明细
    @Transient
    private String start; //查询开始时间
    @Transient
    private String end; //查询结束时间

    public String getStart() {
        return start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getEnd() {
        return end;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public List<OrderDetailed> getOrderDetailedList() {
        return orderDetailedList;
    }

    public String getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public void setOrderDetailedList(List<OrderDetailed> orderDetailedList) {
        this.orderDetailedList = orderDetailedList;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getDeliverTime() {
        return deliverTime;
    }

    public void setDeliverTime(String deliverTime) {
        this.deliverTime = deliverTime;
    }

    public String getSalesperson() {
        return salesperson;
    }

    public void setSalesperson(String salesperson) {
        this.salesperson = salesperson;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getInvoiceRise() {
        return invoiceRise;
    }

    public void setInvoiceRise(String invoiceRise) {
        this.invoiceRise = invoiceRise;
    }

    public String getInvoiceCode() {
        return invoiceCode;
    }

    public void setInvoiceCode(String invoiceCode) {
        this.invoiceCode = invoiceCode;
    }

    public String getInvoicePhone() {
        return invoicePhone;
    }

    public void setInvoicePhone(String invoicePhone) {
        this.invoicePhone = invoicePhone;
    }

    public String getInvoiceAddress() {
        return invoiceAddress;
    }

    public void setInvoiceAddress(String invoiceAddress) {
        this.invoiceAddress = invoiceAddress;
    }

    public String getInvoiceName() {
        return invoiceName;
    }

    public void setInvoiceName(String invoiceName) {
        this.invoiceName = invoiceName;
    }

    public String getInvoiceBank() {
        return invoiceBank;
    }

    public void setInvoiceBank(String invoiceBank) {
        this.invoiceBank = invoiceBank;
    }

    public String getInvoiceBankCode() {
        return invoiceBankCode;
    }

    public void setInvoiceBankCode(String invoiceBankCode) {
        this.invoiceBankCode = invoiceBankCode;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(String payAmount) {
        this.payAmount = payAmount;
    }

    public String getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getLogistics() {
        return logistics;
    }

    public void setLogistics(String logistics) {
        this.logistics = logistics;
    }

}
